package classTest.HomeWork.day1;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入用户名：");
        String username=scanner.nextLine();
        username=username.trim();
        if(username.length()>=1&&username.length()<20){
            System.out.println("验证通过！");
        }else {
            System.out.println("名字长度不足！");
        }
    }
}
